// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
Vue.prototype.$axios = axios

const api = require("@/api/index.js")
axios.defaults.headers.post['Content-Type'] = 'application/json'


Vue.config.productionTip = false;
Vue.prototype.$api = api;
/* eslint-disable no-new */

// markdown 注册
import mavonEditor from 'mavon-editor';
import 'mavon-editor/dist/css/index.css';

// use
Vue.use(mavonEditor);
Vue.use(ElementUI);

new Vue({
  el: '#app',
  router,
  components: {
    App
  },
  template: '<App/>'
})
